<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>4学子页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        /*此类用于设置最外层父级撑满全屏宽度的背景色*/
        .main {
            /*background-color: lightblue;*/
        }
        /*版心: 需要设置固定的宽度,并且居中
        之后所有放在此div中的内容都会随之居中*/
        .center {
            width: 1000px;
            margin: 0 auto;
            /*height: 400px;*/
            /*background-color: red;*/
        }
        .f1 {
            overflow: hidden;
            margin-bottom: 10px;
        }
        .f1>.left {
            width: 611px;
            height: 376px;
            background-color: #e8e8e8;
            float: left;
            margin-right: 10px;
            position: relative;
        }
        .f1>.left>img {
            width: 318px;
            height: 319px;
            position: absolute;
            top: 35px;
            left: 265px;
        }
        /*给图片设置过渡时间为2s,注意加到此处*/
        .scale {
            transition: 2s;
        }
        /*悬停时让元素放大至原来的1.1倍*/
        .scale:hover {
            transform: scale(1.1);
        }
        .f1>.left>.text {
            width: 245px;
            height: 232px;
            /*background-color: pink;*/
            margin-top:68px;
            margin-left: 36px;
        }
        .f1 .text>.p_title {
            font-size: 32px;
            color: #333;
            font-weight: lighter;
        }
        .f1 .text>.p_intro {
            font-size: 12px;
            color: #666;
            font-weight: lighter;
            margin-top: 12px;
            margin-bottom: 24px;
        }
        .f1 .text>.p_price {
            font-size: 24px;
            font-weight: bold;
            color: #0aa1ed;
            margin-bottom: 12px;
        }
        .f1 .text>a {
            display: block;
            width: 132px;
            height: 40px;
            background-color: #0aa1ed;
            color: #fff;
            font-size: 20px;
            text-decoration: none;
            text-align: center;
            line-height: 40px;
        }
        .f1>.right {
            width: 375px;
            height: 376px;
            background-color: #e8e8e8;
            float: left;
            position: relative;
        }
        .f1>.right>img {
            width: 292px;
            height: 232px;
            position: absolute;
            top: 130px;
            left: 75px;
        }
        .f1>.right>.text {
            width: 245px;
            height: 232px;
            /*background-color: pink;*/
            margin-top: 39px;
            margin-left: 25px;
            position: relative;
            z-index: 10;
        }
        .f2 {
            overflow: hidden;
        }
        .f2>.left {
            width: 366px;
            height: 233px;
            background-color: #E8E8E8;
            float: left;
            margin-right:20px;
            font-family: "simhei";
        }
        .f2>.left>.tit {/*设置左侧标题部分*/
            height: 35px;
            background-color: #0aa1ed;
            position: relative;
        }
        .f2>.left>.tit>img {/*设置图片*/
            width: 29px;
            height: 20px;
            position: absolute;
            top: 8px;
            left: 10px;
        }
        .f2>.left>.tit>span {/*标题文字*/
            color: #fff;
            position: absolute;
            left: 49px;
            line-height: 35px;
        }
        .f2>.left>.item_all { /*左侧下方内容*/
            padding-left: 12px;
        }
        .f2>.left>.item_all>.tit_p {/*导航项标题*/
            font-size: 12px;
            color: #62B5EC;
            margin-top: 17px;
            margin-bottom: 9px;
        }
        .f2>.left>.item_all ul {
            list-style: none;/*去除列表项前标识符*/
            overflow: hidden;/*防止因所有li浮动后失去高度*/
        }
        .f2>.left>.item_all ul>li {
            float: left;/*所有导航项浮动横置*/
            margin-right: 10px;
        }
        .f2>.left>.item_all ul>li>a {/*导航项里的超链接*/
            color: #0aa1ed;
            font-size: 12px;
            text-decoration: none;
        }
        .f2>.card {
            width: 198px;
            height: 233px;
            background-color: #e8e8e8;
            float: left;
            margin-right: 8px;
            /*让卡片里的所有文字都是12px*/
            font-size: 12px;
            text-align: center;
        }
        .f2>.card>.p_intro {
            font-weight: lighter;
            color: #000;
        }
        .f2>.card>.p_price {
            color: #0aa1ed;
            font-weight: bold;
            margin: 6px;
        }
        .f2>.card>a {
            display: block;
            width: 100px;
            height: 24px;
            background-color: #0aa1ed;
            color: #fff;
            text-align: center;
            line-height: 24px;
            text-decoration: none;
            /*块级元素自己加 让块级元素自己水平居中*/
            margin: 0 auto;
        }
        .f2>.card>img {
            width:100%;
        }
        .f2 .card3 {
            margin-right: 0;
        }
    </style>
</head>
<body>
<!--  设置最底层的背景色  -->
<div class="main">
    <!--  设置固定的宽度且居中  -->
    <div class="center">
        <!--  一楼  -->
        <div class="f1">
            <!-- 一楼左侧 -->
            <div class="left">
                <div class="text">
                    <p class="p_title">灵越 燃7000系列</p>
                    <p class="p_intro">
                        酷睿双核i5处理器|256GB SSD| 8GB内存 <br>
                        英特尔HD显卡620含共享显卡内存
                    </p>
                    <p class="p_price">￥4999.00</p>
                    <a href="#">查看详情</a>
                </div>
                <img src="img/computer1.png" alt="" class="scale">
            </div>
            <!-- 一楼右侧 -->
            <div class="right">
                <div class="text">
                    <p class="p_title">颜值 框不住</p>
                    <p class="p_intro">
                        酷睿双核i5处理器|256GB SSD| 8GB内存 <br>
                        英特尔HD显卡620含共享显卡内存
                    </p>
                    <p class="p_price">￥6888.00</p>
                    <a href="#">查看详情</a>
                </div>
                <img src="img/computer2.png" alt="" class="scale">
            </div>
        </div>
        <!--  二楼  -->
        <div class="f2">
            <!-- 二楼左侧 -->
            <div class="left">
                <div class="tit">
                    <img src="img/icon.png" alt="">
                    <span>电脑,办公/1F</span>
                </div>
                <div class="item_all">
                    <p class="tit_p">电脑整机</p>
                    <!-- ul>li*6>a -->
                    <ul>
                        <li><a href="#">笔记本</a></li>
                        <li><a href="#">台式机</a></li>
                        <li><a href="#">游戏机</a></li>
                        <li><a href="#">一体机</a></li>
                        <li><a href="#">服务器</a></li>
                        <li><a href="#">联想</a></li>
                    </ul>
                    <p class="tit_p">电脑配件</p>
                    <ul>
                        <li><a href="#">CPU</a></li>
                        <li><a href="#">SSD硬盘</a></li>
                        <li><a href="#">显示器</a></li>
                        <li><a href="#">显卡</a></li>
                        <li><a href="#">组装电脑</a></li>
                        <li><a href="#">机箱</a></li>
                    </ul>
                    <p class="tit_p">外设/游戏</p>
                    <ul>
                        <li><a href="#">键盘</a></li>
                        <li><a href="#">鼠标</a></li>
                        <li><a href="#">u盘</a></li>
                        <li><a href="#">移动硬盘</a></li>
                        <li><a href="#">游戏设备</a></li>
                        <li><a href="#">智能单车</a></li>
                    </ul>
                </div>
            </div>
            <!-- 二楼卡片 -->
            <div class="card">
                <img src="img/computer3.png" alt="" class="scale">
                <p class="p_intro">
                    戴尔(DELL)XPS13-9360-R1609 13.3英 <br>
                    寸微边框笔记本电脑
                </p>
                <p class="p_price">￥4600.00</p>
                <a href="#">查看详情</a>
            </div>
            <div class="card">
                <img src="img/computer4.png" alt="" class="scale">
                <p class="p_intro">
                    14.8mm超轻薄笔记本电脑 航海王版 <br>
                    13.3英寸微边框笔记本电脑
                </p>
                <p class="p_price">￥5600.00</p>
                <a href="#">查看详情</a>
            </div>
            <div class="card card3">
                <img src="img/computer4.png" alt="" class="scale">
                <p class="p_intro">
                    联想(Lenovo) YOGA900 多彩版 13.3 <br>
                    英寸微边框笔记本电脑
                </p>
                <p class="p_price">￥6600.00</p>
                <a href="#">查看详情</a>
            </div>
        </div>
    </div>
</div>


</body>
</html>